---
id: options-hardwareBackButton
title: Hardware Back Button Options
sidebar_label: Hardware Back Button
---

Controls Android hardware back button.

```js
const options = {
  hardwareBackButton: {},
};
```

### `dismissModalOnPress`

Controls whether the hardware back button should dismiss modal or not.

| Type    | Required | Default | Platform |
| ------- | -------- | ------- | -------- |
| boolean | No       | true    | Android  |

### `popStackOnPress`

Controls whether the hardware back button should pop stacks or not.

| Type    | Required | Default | Platform |
| ------- | -------- | ------- | -------- |
| boolean | No       | true    | Android  |
